package com.mooneil.sadness.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class SubmitName {

	@RequestMapping(value = "SubmitName", method = RequestMethod.POST)
	public void onSubmitName(String txtName, HttpServletResponse response)
			throws IOException {

		System.out.println(txtName);
		response.sendRedirect("/");

		
	}

}
